package net.xdclass.web;

import net.xdclass.dao.UmsAdminDao;
import net.xdclass.pojo.UmsAdmin;
import org.mybatis.logging.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.logging.Logger;

/**
 * @author xdr630
 * @version 1.0
 * @date 2024/4/23 23:17
 */
@RestController
public class MyBatisBaseController {

    @Autowired
    private UmsAdminDao umsAdminDao;

    @GetMapping("/getById")
    public UmsAdmin testSelectByIdSimple() {
        UmsAdmin umsAdmin = umsAdminDao.selectByIdSimple(1L);
        return umsAdmin;
    }
}